#include "bitree.h"

#include <stdlib.h>

bitree_node *bitree_node_ptr()
{
    bitree_node* node = (bitree_node*)malloc(sizeof(bitree_node));
    node->data = NULL;
    node->left = NULL;
    node->right = NULL;
    return node;
}

bitree *bitree_ptr()
{
    bitree* tree = (bitree*)malloc(sizeof(bitree));
    tree->root = NULL;
    tree->element_size = 0;
    tree->cons_fn = NULL;
    tree->copy_fn = NULL;
    tree->free_fn = NULL;
    return tree;
}
